<nav class="navbar navbar-default">
  <div class="container">
    <div class="navbar-header">
	    <img id="logo" src="<?php echo base_url(); ?>public/images/logo.jpg">
	    <a class="navbar-brand " href="<?php echo site_url('/article'); ?>">王高峰的Blog</a>
    </div>
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav navbar-right">
      	<?php 
      		foreach ($catalogs as $catalog) {
      	?>
      		<li <?php if($catalog->id==$catalog_id){?> class="active" <?php } ?>><a href="<?php echo site_url('/article/lists/'.$catalog->id);?>"><?php echo $catalog->name;?></a></li>
      	<?php
      	} 
      	?>
      </ul>
    </div>
  </div>
</nav>